package com.study.d012Components.treeview;

import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleStringProperty;

/** 简单机构类
*@description
*@author xtayhame
*date 2020年3月15日
*version
*since v1.0
*/
public class Organ {
	private SimpleStringProperty name = new SimpleStringProperty();
	private SimpleBooleanProperty isCheck= new SimpleBooleanProperty();

	public Organ(String name, boolean check) {
		this.name.set(name);
		this.isCheck.set(check);
	}

	public SimpleStringProperty getNameProperty() {
		return name;
	}

	public String getName() {
		return this.name.get();
	}

	public void setName(String name) {
		this.name.set(name);
	}

	public SimpleBooleanProperty getIsCheckProperty() {
		return isCheck;
	}

	public boolean getIsCheck() {
		return this.isCheck.get();
	}

	public void setIsCheck(boolean isCheck) {
		this.isCheck.set(isCheck);
	}

	@Override
	public String toString() {
		return "name="+this.name.get() + "      isCheck=" + this.isCheck.get();
	}
}
